package com.hzm.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzm.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: qy137-java
 * @description:
 * @author: 皇子明
 * @create: 2021-10-19 11:33
 **/

public interface OrderDao extends BaseMapper<Order> {
    Page<Order> getAllOrder (Page<Order> orderPage, @Param(Constants.WRAPPER) QueryWrapper<Order> wrapper);

    Order queryOrderAndPayLog(String id);

    List<Order> queryOrderByPay();

    Order getOrderStatusByCourseIdAndHuiYuanId(@Param("id") String id,@Param("HuiYuanId") String HuiYuanId);
}
